﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Examples/ExampleMasterPage.master" AutoEventWireup="true" CodeFile="HomePage.aspx.cs" Inherits="Examples_HomePage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script>

        var expandInitial = function() {
            var accordian = $get('<%= accordian.ClientID%>');
            if (accordian && accordian.AccordionBehavior) {
                accordian.AccordionBehavior.set_SelectedIndex(0);
                accordian.AccordionBehavior.set_requireOpenedPane(true);
            }
            Sys.Application.remove_load(expandInitial);
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ajax:Accordion id="accordian" CssClass="topic_accordian" HeaderCssClass="topic_head" HeaderSelectedCssClass="topic_headSelected" ContentCssClass="topic_body" RequireOpenedPane="false" SelectedIndex="-1" runat="server">
        <Panes>
            <ajax:AccordionPane ID="accIntro" runat="server">
                <Header>
                    <h2>Introduction</h2>
                </Header>
                <Content>
                    <div class="article_container">
                        <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
                    </div>
                </Content>
            </ajax:AccordionPane>
            <ajax:AccordionPane ID="accReg" runat="server">
                <Header>
                    <h2>Newsletter Registration</h2>
                </Header>
                <Content>
                     <asp:Panel ID="pnlRegister" CssClass="article_container" runat="server">
                  
                        <p>This is the Register content text</p>
                  
                  
                        <asp:Panel id="pnlNewsletterExecption" CssClass="exception" EnableViewState="false" Visible="false" runat="server">
                            <ul>
                            <asp:ListView ID="dlNewsletterExecption" runat="server">
                                <LayoutTemplate>
                                    <ul><asp:PlaceHolder id="itemPlaceholder" runat="server" /></ul>
                                </LayoutTemplate>
                                <ItemTemplate><li><%#Eval("Message") %></li></ItemTemplate>
                            </asp:ListView>
                            </ul>
                        </asp:Panel>
                        <ul class="form">
                            <li>
                                <asp:Label ID="Label1" AssociatedControlID="txtName" Text="Name" runat="server" />
                                <asp:TextBox ID="txtName" runat="server" />
                            </li>
                            <li>
                                <asp:Label ID="Label2" AssociatedControlID="txtEmail" Text="Email Address" runat="server" />
                                <asp:TextBox ID="txtEmail" runat="server" />
                            </li>
                            <li>
                                <asp:Label ID="Label3" AssociatedControlID="txtJob" Text="Job Title" runat="server" />
                                <asp:TextBox ID="txtJob" runat="server" />
                            </li>
                            <li>
                                <asp:Label ID="Label4" AssociatedControlID="txtBar" Text="Bar" runat="server" />
                                <asp:TextBox ID="txtBar" runat="server" />
                            </li>
                            <li>
                                <asp:Label ID="Label5" AssociatedControlID="txtCity" Text="Email Address" runat="server" />
                                <asp:TextBox ID="txtCity" runat="server" />
                            </li>
                            <li>
                                <asp:Label ID="lbl" AssociatedControlID="txtCountry" Text="Country" runat="server" />
                                <asp:TextBox ID="txtCountry" runat="server" />
                            </li>
                            <li class="buttons">
                                <asp:Button ID="btnRegister" Text="Register" OnClick="btnRegister_Click" runat="server" />
                            </li>
                        </ul>
                    </asp:Panel>
                    <asp:Panel ID="pnlRegistered" CssClass="article_container" Visible="false" runat="server">
                        Thank you for registering.
                    </asp:Panel>
                </Content>
            </ajax:AccordionPane>
            <ajax:AccordionPane ID="accNews" runat="server">
                <Header>
                    <h2>News</h2>
                </Header>
                <Content>
                    <div class="article_container">
                        <h3>Article1</h3>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                    </div>
                    <div class="article_container_off">
                        <h3><a href="#">Article2</a></h3>
                        <p>Article two summary...</p>
                    </div>
                </Content>
            </ajax:AccordionPane>
            <ajax:AccordionPane ID="accMore" runat="server">
                <Header>
                   <h2>Find Out More</h2>
                </Header>
                <Content>
                    <div class="article_container">
                        <h3>Select Your Country</h3>
                        <asp:DropDownList ID="dlCountries" AutoPostBack="true" OnSelectedIndexChanged="dlCountries_SelectedIndexChanged" runat="server">
                            <asp:ListItem Text="Select your country" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="United Kingdom" />
                        </asp:DropDownList>
                    </div>
                    <div id="faqUnSelected" visible="false" runat="server">
                        <asp:LinkButton ID="lnkFaqUnSelected" OnClick="lnkFaqUnSelected_Click" Text="Frequently Asked Questions and Terms And Conditions" runat="server" />
                    </div>
                    <div id="faqSelected" class="article_container" visible="false" runat="server">
                        <h3>Frequently Asked Questions and Terms And Conditions</h3>
                        <p><a target="_blank" href="#">Click here</a> to see the Terms and Conditions</p>
                        <acms:AcmsDataList ID="dlFQA" DataSourceID="dsFAQ" SelectedIndex="0" UseAjax="false" runat="server">
                            <SelectedItemTemplate>
                                <div class="question">This is Question <%#Container.DataItemIndex %></div>
                                <div class="answer">This is Answer <%#Container.DataItemIndex %></div>
                            </SelectedItemTemplate>
                            <ItemTemplate>
                                <div>
                                    <asp:LinkButton CssClass="questionOff" Text='<%#string.Concat("This is Question ", Container.DataItemIndex) %>' CommandName="Select" runat="server" />
                                </div>
                            </ItemTemplate>
                        </acms:AcmsDataList>
                    </div>
                    <div id="regCompUnSelected" class="article_container" visible="false" runat="server">
                        <asp:LinkButton ID="lnkRegCompUnSelected" OnClick="lnkRegCompUnSelected_Click" Text="Register Your Interest" runat="server" />
                    </div>
                    <div id="regCompSelected" visible="false" class="article_container" runat="server">
                        <h3>Register Your Interest in World Class...</h3>
                        <asp:Panel ID="pnlRegisterComp" runat="server">
                             <ul class="form">
                                <li>
                                    <asp:Label ID="Label6" AssociatedControlID="txtCompName" Text="Name" runat="server" />
                                    <asp:TextBox ID="txtCompName" runat="server" />
                                </li>
                                <li>
                                    <asp:Label ID="Label7" AssociatedControlID="txtCompEmail" Text="Email Address" runat="server" />
                                    <asp:TextBox ID="txtCompEmail" runat="server" />
                                </li>
                                <li>
                                    <asp:Label ID="Label8" AssociatedControlID="txtCompJob" Text="Job Title" runat="server" />
                                    <asp:TextBox ID="txtCompJob" runat="server" />
                                </li>
                                <li>
                                    <asp:Label ID="Label9" AssociatedControlID="txtCompBar" Text="Bar" runat="server" />
                                    <asp:TextBox ID="txtCompBar" runat="server" />
                                </li>
                                <li>
                                    <asp:Label ID="Label10" AssociatedControlID="txtCompCity" Text="Email Address" runat="server" />
                                    <asp:TextBox ID="txtCompCity" runat="server" />
                                </li>
                                <li>
                                    <asp:Label ID="Label11" AssociatedControlID="txtCompCountry" Text="Country" runat="server" />
                                    <asp:TextBox ID="txtCompCountry" runat="server" />
                                </li>
                                <li class="buttons">
                                    <asp:Button ID="btnCompRegister" Text="Register" OnClick="btnCompRegister_Click" runat="server" />
                                </li>
                            </ul>
                        </asp:Panel>
                        <asp:Panel ID="pnlRegisteredComp" CssClass="article_container" Visible="false" runat="server">
                            Thank you for registering for the competition.
                        </asp:Panel>
                    </div>
                </Content>
            </ajax:AccordionPane>
        </Panes>
    </ajax:Accordion>
    <acms:PostDataSource ID="dsFAQ" OnSelectData="dsFAQ_SelectData" runat="server"></acms:PostDataSource>
</asp:Content>

